 /**
   * Copyright 2014 Viettel Telecom. All rights reserved.
   * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   */
 package com.viettel.core.dao.cms; 
import java.util.List;

import com.viettel.core.common.utils.KPaging;
import com.viettel.core.entities.cms.Users;
import com.viettel.core.entities.vo.ListUserFilter;
import com.viettel.core.entities.vo.UsersSearchFilter;
import com.viettel.core.entities.vo.UsersSearchVO;
import com.viettel.core.entities.vo.UsersVO;
import com.viettel.core.exceptions.DataAccessException; 
 /**
   *  Mo ta muc dich cua lop (interface)
   *  @author: TOANTM1
   *  @version:
   *  @since: 27/02/2014 - 10:50:59
   */
 public interface UsersDAO { 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 10:50:59
  	 * For: 
  	 * @description: 
  	 */
 	Users getUsersById(Integer id) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 10:50:59
  	 * For: 
  	 * @description: 
  	 */
 	Users createUsers(Users users) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 10:50:59
  	 * For: 
  	 * @description: 
  	 */
 	void updateUsers(Users users) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 10:50:59
  	 * For: 
  	 * @description: 
  	 */
 	void deleteUsers(Users users) throws DataAccessException; 
 	
 	/**@author huanlh5
 	 */
 	Boolean checkPhoneExist(String phone)
			throws DataAccessException;
 	Boolean checkPhoneExists(String phone) throws DataAccessException;
 	/**@author huanlh5
 	 */
	List<UsersSearchVO> getListSearchUsersByFilter(UsersSearchFilter filter) 
			throws DataAccessException;
	
	/**
	 * @author huanlh5
	 * @param phone
	 * @param maxRows
	 * @return
	 * @throws DataAccessException
	 */
	List<Users> getListUsersByPhone(String phone, Integer maxRows) throws DataAccessException;
	
	/**
	 * @author huanlh5
	 * @param phone
	 * @return
	 * @throws DataAccessException
	 */
	List<Users> getUsersByPhone(String phone) throws DataAccessException;
} 
